
import service  from "@/utils/request";
/**
 * @export 上传单个文件
 */
export function onUpload(data = {}) {
  return service({
    url: "/web/common/upload",
    method: "post",
    headers: {
        'Content-Type': 'multipart/form-data'
    },
    data,
  });
}
/**
 * @export 获取配置
 */
 export function getConfig(configKey) {
  return service({
    url: '/web/config/configKey/' + configKey,
    method: 'get'
  });
}